<template>
  <div ref="aplayer" id="aplayer"></div>
</template>
<script setup>
import APlayer from 'aplayer'
import {onMounted, ref} from "vue";

const aplayer = ref(null)
onMounted(() => {
  const ap = new APlayer({
    container: aplayer.value,
    audio: [{
      name: 'will',
      artist: '梶浦由記',
      url: '/mp3/Will.mp3',
      cover: 'https://imgessl.kugou.com/stdmusic/20210623/20210623161703556265.jpg'
    }]
  });
})
</script>

<style scoped>
</style>
